/*================================================================
*   Copyright (C) 2025 baichao All rights reserved.
*   
*   文件名称：Notification.h
*   创 建 者：baichao
*   创建日期：2025年01月02日
*   描    述：
*
================================================================*/


// Notification.h
#ifndef DESIGN_PATTERNS_DIP_BAD_NOTIFICATION_H_
#define DESIGN_PATTERNS_DIP_BAD_NOTIFICATION_H_

#include "EmailService.h"

// 负责通知的模块
typedef struct Notification {
    EmailService *email_service;
    void (*notify)(struct Notification *, const char *message);
} Notification;

void notify_impl(Notification *notification, const char *message);

#endif  // DESIGN_PATTERNS_DIP_BAD_NOTIFICATION_H_

